Optimal. Leaf size=66 \[ -\frac{i \cos ^5(c+d x) (a+i a \tan (c+d x))^4}{5 d}-\frac{i a \cos ^3(c+d x) (a+i a \tan (c+d x))^3}{15 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0736642, antiderivative size = 66, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 24, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.083, Rules used = {3497, 3488} \[ -\frac{i \cos ^5(c+d x) (a+i a \tan (c+d x))^4}{5 d}-\frac{i a \cos ^3(c+d x) (a+i a \tan (c+d x))^3}{15 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3497
Rule 3488
Rubi steps
\begin{align*} \int \cos ^5(c+d x) (a+i a \tan (c+d x))^4 \, dx &=-\frac{i \cos ^5(c+d x) (a+i a \tan (c+d x))^4}{5 d}+\frac{1}{5} a \int \cos ^3(c+d x) (a+i a \tan (c+d x))^3 \, dx\\ &=-\frac{i a \cos ^3(c+d x) (a+i a \tan (c+d x))^3}{15 d}-\frac{i \cos ^5(c+d x) (a+i a \tan (c+d x))^4}{5 d}\\ \end{align*}
Mathematica [A] time = 0.355633, size = 50, normalized size = 0.76 \[ \frac{a^4 (4 \cos (c+d x)-i \sin (c+d x)) (\sin (4 (c+d x))-i \cos (4 (c+d x)))}{15 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.063, size = 139, normalized size = 2.1 \begin{align*}{\frac{1}{d} \left ({\frac{{a}^{4} \left ( \sin \left ( dx+c \right ) \right ) ^{5}}{5}}-4\,i{a}^{4} \left ( -{\frac{ \left ( \cos \left ( dx+c \right ) \right ) ^{3} \left ( \sin \left ( dx+c \right ) \right ) ^{2}}{5}}-{\frac{2\, \left ( \cos \left ( dx+c \right ) \right ) ^{3}}{15}} \right ) -6\,{a}^{4} \left ( -1/5\,\sin \left ( dx+c \right ) \left ( \cos \left ( dx+c \right ) \right ) ^{4}+1/15\, \left ( 2+ \left ( \cos \left ( dx+c \right ) \right ) ^{2} \right ) \sin \left ( dx+c \right ) \right ) -{\frac{4\,i}{5}}{a}^{4} \left ( \cos \left ( dx+c \right ) \right ) ^{5}+{\frac{{a}^{4}\sin \left ( dx+c \right ) }{5} \left ({\frac{8}{3}}+ \left ( \cos \left ( dx+c \right ) \right ) ^{4}+{\frac{4\, \left ( \cos \left ( dx+c \right ) \right ) ^{2}}{3}} \right ) } \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.14519, size = 159, normalized size = 2.41 \begin{align*} -\frac{12 i \, a^{4} \cos \left (d x + c\right )^{5} - 3 \, a^{4} \sin \left (d x + c\right )^{5} + 4 i \,{\left (3 \, \cos \left (d x + c\right )^{5} - 5 \, \cos \left (d x + c\right )^{3}\right )} a^{4} - 6 \,{\left (3 \, \sin \left (d x + c\right )^{5} - 5 \, \sin \left (d x + c\right )^{3}\right )} a^{4} -{\left (3 \, \sin \left (d x + c\right )^{5} - 10 \, \sin \left (d x + c\right )^{3} + 15 \, \sin \left (d x + c\right )\right )} a^{4}}{15 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.00192, size = 93, normalized size = 1.41 \begin{align*} \frac{-3 i \, a^{4} e^{\left (5 i \, d x + 5 i \, c\right )} - 5 i \, a^{4} e^{\left (3 i \, d x + 3 i \, c\right )}}{30 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.652151, size = 82, normalized size = 1.24 \begin{align*} \begin{cases} \frac{- 6 i a^{4} d e^{5 i c} e^{5 i d x} - 10 i a^{4} d e^{3 i c} e^{3 i d x}}{60 d^{2}} & \text{for}\: 60 d^{2} \neq 0 \\x \left (\frac{a^{4} e^{5 i c}}{2} + \frac{a^{4} e^{3 i c}}{2}\right ) & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.6316, size = 1235, normalized size = 18.71 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]